CMAKE_MINIMUM_REQUIRED(VERSION 3.17)
PROJECT(VideoAnalysisSystem VERSION 0.1 LANGUAGES CXX)
SET(CMAKE_CXX_STANDARD 14)
SET(CMAKE_CXX_FLAGS "-lrocketmq -pthread -lpthread -lz -ldl -lrt -Wl,--no-as-needed" )
# set some global variables
SET(PROJECT_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
SET(CMAKE_MODULE_PATH
        ${PROJECT_ROOT}/cmake
        ${CMAKE_MODULE_PATH}
        )
# add source code
ADD_SUBDIRECTORY(src bin)
# copy conf file
FILE(COPY conf.json DESTINATION bin)
FILE(COPY test_video.mp4 DESTINATION bin)